package com.crazymakercircle.demo.lock.custom;

import lombok.extern.slf4j.Slf4j;

import java.util.Objects;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @Description
 * @Date 2021/8/3
 * @Created by Jonathan
 */
@Slf4j
public class MapDemo {
    public static void main(String[] args) {
        ConcurrentHashMap<Integer, Object> map = new ConcurrentHashMap<>();
        for (int i = 0; i < 100; i++) {
            map.put(i, new Stu(i));
        }
        map.get(7);
    }

}

class Stu {
    private Integer name;

    public Stu(Integer name) {
        this.name = name;
    }


    @Override
    public int hashCode() {
        return 1;
    }
}